<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$config = array(
    'user' => array(
        array(
            'field' => 'username',
            'label' => 'Username',
            'rules' => 'trim|required|alpha_numeric|is_unique[m_user.username]'
        ),
        array(
            'field' => 'password',
            'label' => 'Password',
            'rules' => 'trim|required|matches[passconf]'
        ),
        array(
            'field' => 'passconf',
            'label' => 'Password Confirmation',
            'rules' => 'trim|required'
        ),
        array(
            'field' => 'email',
            'label' => 'Email',
            'rules' => 'required|valid_email'
        )
    ),
    'useredit' => array(
        array(
            'field' => 'password',
            'label' => 'Password',
            'rules' => 'matches[passconf]'
        ),
        array(
            'field' => 'passconf',
            'label' => 'Password Confirmation',
            'rules' => 'matches[password]'
        ),
        array(
            'field' => 'email',
            'label' => 'Email',
            'rules' => 'required|valid_email'
        )
    ),
    'category' => array(
        array(
            'field' => 'category_name',
            'label' => 'Category Name',
            'rules' => 'required|max_length[30]'
        )
    ),
	'provider' => array(
			array(
					'field' => 'provider_name',
					'label' => 'provider_name Name',
					'rules' => 'required|max_length[30]'
			)
	),
	'product' => array(
			array(
					'field' => 'product_name',
					'label' => 'product_name Name',
					'rules' => 'required|max_length[30]'
			)
	),
	'member' => array(
			array(
					'field' => 'first_name',
					'label' => 'First Name',
					'rules' => 'required|max_length[30]'
			),
			array(
					'field' => 'last_name',
					'label' => 'Last Name',
					'rules' => 'required|max_length[30]'
			),
			array(
					'field' => 'password',
					'label' => 'Password',
					'rules' => 'matches[passconf]'
			),
			array(
					'field' => 'email',
					'label' => 'Email',
					'rules' => 'required|valid_email'
			)
	),
	'contract' => array(
			array(
					'field' => 'contract_name',
					'label' => 'Contract Name',
					'rules' => 'required|max_length[30]'
			),
			array(
					'field' => 'contract_number',
					'label' => 'Contract Number',
					'rules' => 'required|max_length[30]'
			),
			array(
					'field' => 'product_id',
					'label' => 'Product Name',
					'rules' => 'required|max_length[30]'
			)
	),
	'termination' => array(
			array(
					'field' => 'member_id',
					'label' => 'Member Name',
					'rules' => 'required|max_length[30]'
			),
			array(
					'field' => 'contract_number',
					'label' => 'Contract Number',
					'rules' => 'required|max_length[30]'
			)
	),
	'terminationEmail' => array(
			array(
					'field' => 'email',
					'label' => 'Email',
					'rules' => 'required|valid_email'
			)
	),
		
		
);
